// ==========================================================================
// GFast自动生成controller操作代码。
// 生成日期：2024-04-24 10:28:09
// 生成路径: internal/app/business/controller/venues.go
// 生成人：周志雄
// desc:演出场馆
// company:云南奇讯科技有限公司
// ==========================================================================

package controller

import (
	"context"
	"github.com/tiger1103/gfast/v3/api/v1/business"
	"github.com/tiger1103/gfast/v3/internal/app/business/service"
	systemController "github.com/tiger1103/gfast/v3/internal/app/system/controller"
)

type venuesController struct {
	systemController.BaseController
}

var Venues = new(venuesController)

// List 列表
func (c *venuesController) List(ctx context.Context, req *business.VenuesSearchReq) (res *business.VenuesSearchRes, err error) {
	res, err = service.Venues().List(ctx, req)
	return
}

//// Get 获取演出场馆
//func (c *venuesController) Get(ctx context.Context, req *business.VenuesGetReq) (res *business.VenuesGetRes, err error) {
//	res = new(business.VenuesGetRes)
//	res.VenuesInfoRes, err = service.Venues().GetById(ctx, req.Id)
//	return
//}

// Add 添加演出场馆
func (c *venuesController) Add(ctx context.Context, req *business.VenuesAddReq) (res *business.VenuesAddRes, err error) {
	err = service.Venues().Add(ctx, req)
	return
}

//// Edit 修改演出场馆
//func (c *venuesController) Edit(ctx context.Context, req *business.VenuesEditReq) (res *business.VenuesEditRes, err error) {
//	err = service.Venues().Edit(ctx, req)
//	return
//}
//
//// Delete 删除演出场馆
//func (c *venuesController) Delete(ctx context.Context, req *business.VenuesDeleteReq) (res *business.VenuesDeleteRes, err error) {
//	err = service.Venues().Delete(ctx, req.Ids)
//	return
//}

// 根据场馆ID查询座位列表
func (c *venuesController) GetSeatsById(ctx context.Context, req *business.GetSeatsByVenueIdReq) (res *business.GetSeatsByVenueIdRes, err error) {
	res, err = service.Venues().GetSeatsById(ctx, req)
	return
}
